package day3;

/**
 * @author oldliu
 * @since 1.0
 */
public class PhoneTest {
    public static void main(String[] args) {
        MobilePhone p=new MobilePhone();
        //p.b=new Battery();//2

        //1:
        Battery b=new Battery();


        b.brand="华为原装";
        b.vol=4000;
        p.b=b;//
        p.color="黑";
        p.name="荣耀x30x";
        p.type="安卓机";
//        p.b.brand="荣耀原装";
//        p.b.vol=4000;

        p.show();
    }
}
